package cn.lhx.blog.pojo;

import java.util.List;

/**
 * 文章分类
 * @author lhx
 *
 */
public class ArticleCategory {
	private int id;
	private String name;
	private String description;
	private List<Article> includeArticles;
	private int contains;//含有改分类的文章数量 目的：减少数据库统计的次数
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public List<Article> getIncludeArticles() {
		return includeArticles;
	}
	public void setIncludeArticles(List<Article> includeArticles) {
		this.includeArticles = includeArticles;
	}
	public int getContains() {
		return contains;
	}
	public void setContains(int contains) {
		this.contains = contains;
	}
	public String toString(){
		return " id ="+id+
				" name ="+name+
				" description ="+description+
				" contains = "+contains;
	}

}
